<!--移动端-->
<template>
    <keep-alive>
         <router-view></router-view>
    </keep-alive>
</template>

<script>
  export default {
    name: 'layout-phone',
    components:{},
    data(){
      return {
        drawer:false,
        direction: 'ltr',
        lang:'zh',
        isScroll:false,
      }
    },
    methods:{
      onBack(){
        this.$router.push('/pIndex')
        this.drawer = false
      },
      onLink(){
        this.$message('Coming soon')
      },
    },
    created() {
      // document.title=this.$t('common.FFAM')
    },
    mounted(){
      var that = this;
      window.onscroll = function() {
        var t = document.documentElement.scrollTop || document.body.scrollTop
        // console.log(t)
        if (t > 20) {
          that.isScroll = true;
          // console.log("cehng",t)
        } else {
          that.isScroll = false
        }
      }
    }
  }
</script>

<style>
  /*控制弹框遮罩位置*/
  .v-modal{
    top:5.43rem;
  }
</style>
<style lang="scss">
  @import '../../assets/css/phone.scss';


</style>
